package com.khaled.protclass.model.bean.domain;

@SuppressWarnings("rawtypes")
public class Domain implements Comparable
{
	private String domainID;

	private String function;

	private String length;

	private double e_Value;

	private double bitScore;

	public Domain(String domainID)
	{
		super();
		this.domainID = domainID;

	}

	public Domain(String domainID, double e_Value, double bitScore)
	{
		super();
		this.domainID = domainID;
		this.e_Value = e_Value;
		this.bitScore = bitScore;
	}

	public Domain(String domainID, String function, String length)
	{
		super();
		this.domainID = domainID;
		this.function = function;
		this.length = length;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (obj instanceof Domain)
		{
			Domain domain = (Domain) obj;

			if (domainID.equals(domain.getDomain_ID())) { return true; }
		}
		return false;
	}

	@Override
	public int compareTo(Object o)
	{
		if (o instanceof Domain)
		{
			Domain domain = (Domain) o;
			return domain.getDomain_ID().compareToIgnoreCase(this.getDomain_ID());
		}

		return 0;
	}

	public String getDomain_ID()
	{
		return domainID;
	}

	public int getDomainID()
	{
		return Integer.parseInt(domainID);
	}

	public String getFunction()
	{
		return function;
	}

	public void setFunction(String function)
	{
		this.function = function;
	}

	public String getLength()
	{
		return length;
	}

	public void setLength(String length)
	{
		this.length = length;
	}

	public double getE_Value()
	{
		return e_Value;
	}

	public void setE_Value(double e_Value)
	{
		this.e_Value = e_Value;
	}

	public double getBitScore()
	{
		return bitScore;
	}

	public void setBitScore(double bitScore)
	{
		this.bitScore = bitScore;
	}
}
